package blacklist_enum

// 驾驶员黑名单申请类型
type blacklistDriverApplyType int

var BlacklistDriverApplyType blacklistDriverApplyType

// 加入黑名单
func (c *blacklistDriverApplyType) AddIntoBlacklist() int {
	return 1
}

// 撤回黑名单
func (c *blacklistDriverApplyType) MoveOutBlacklist() int {
	return 2
}

func (c *blacklistDriverApplyType) ToText(value int) string {
	switch value {

	case 1:
		return "加入黑名单"

	case 2:
		return "撤回黑名单"

	}
	return ""
}

func (c *blacklistDriverApplyType) ToValue(text string) int {
	switch text {

	case "加入黑名单":
		return 1

	case "撤回黑名单":
		return 2

	}
	return 0
}
